package net.retorx

import java.io.File
import java.util.Date
import javax.ws.rs._
import org.jboss.resteasy.annotations.providers.multipart.MultipartForm

@Path("/thing")
class FormService {

	@GET
	@Path("/all")
	@Produces(Array("application/vnd.thing+json", "text/xml"))
	def getThings() {

	}

	@GET
	@Path("/{id}")
	@Produces(Array("application/vnd.thing+json", "text/xml"))
	def getThing(@PathParam("id") id: String) = {
		val thing = new Thing();
		thing
	}

	@POST
	@Path("/{id}")
	def createThing(@MultipartForm thing: Thing) = {
		println("got thing: " + thing);
	}
}